package com.sample;

public class Heart {
	private Circle up ;
	public Triangle down;
	
	public Heart()
	{
		up = new Circle();
		down = new Triangle();
		up.R = 2;
		down.B = 8;
		down.H = 8;
	}
	public double calcArea()
	{
		return up.calcArea() + down.calcArea() ;
	}
	
	public double testfun()
	{
		return up.R + teststub();
	}
	public double teststub()
	{
		return 5 + up.R;
	}

}
